package net.xju.service.impl;

import net.xju.common.utils.PageInfo;
import net.xju.dao.GoodsDao;
import net.xju.entity.Goods;
import net.xju.entity.Vo.GoodsVo;
import net.xju.service.GoodsService;

public class GoodsServiceImpl implements GoodsService {

    GoodsDao goodsDao = new GoodsDao();

    @Override
    public PageInfo<GoodsVo> pageList(Goods goods, int pageNum, int pageSize) {
        return goodsDao.pageList(goods, pageNum, pageSize);
    }

    @Override
    public boolean insert(Goods goods) {
        return goodsDao.insert(goods);
    }

    @Override
    public boolean delete(int id) {
        return goodsDao.delete(id);
    }

    @Override
    public boolean update(Goods goods) {
        return goodsDao.update(goods);
    }
}
